package com.jiantong.work.service;


import com.jiantong.work.model.BreedReportSurveyRecord;
import io.terminus.common.model.Response;

import java.util.List;
import java.util.Map;

/**
 * Created by niufei on 2017/3/15.
 *
 */
public interface BreedReportSurveyRecordReadService {

    /**
     * 根据产地检疫的申报单号 查询单条 政府端的数据
     * @param reportId 产地检疫的申报单号
     * @return BreedReportSurveyRecord对象
     */
    Response<BreedReportSurveyRecord> findByReportId(Long reportId);

    /**
     * 根据产地检疫的申报单号 查询政府端的是否存在 该单据
     * @param reportId 产地检疫的申报单号
     * @return id
     */
    Long findIdByReportId(Long reportId);

    Response<List<BreedReportSurveyRecord>> findByNameOrNumber(Map criteria);

    /**
     * 根据检疫证号溯源
     * @param quarantineCertNumber 检疫证号
     * @return BreedReportSurveyRecord
     */
    Response<BreedReportSurveyRecord> findByQuarantineCertNumber(String quarantineCertNumber);
}
